import { createApp } from 'vue'
import App from './App.vue'
import {createPinia} from "pinia"
import router from "./router"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import "./assets/global.scss"
import './utils/routerHook'
import piniaPluginpersistedstate from 'pinia-plugin-persistedstate'

import 'nprogress/nprogress.css'

let pinia=createPinia()
// 使用持久化存储
pinia.use(piniaPluginpersistedstate)
let app=createApp(App)
app.use(ElementPlus)
app.use(router)
app.use(pinia)
app.mount('#app')

